import Vue from 'vue'
import App from './App.vue'
import store from './utils/store'
import router from './utils/router'
// import Antd from 'ant-design-vue';
// import 'ant-design-vue/dist/antd.css';
import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
import formCreate from '@form-create/element-ui'
import RGridLayout from '@/components/RGridLayout'
import RGridLayoutPre from '@/components/RGridLayoutPre'
// import vueJsonEditor from 'vue-json-editor'
import IdInput from '@/components/form-comps/IdInput';
import PositionSelect from '@/components/form-comps/PositionSelect';
import less from 'less'
import AdminSelect from '@/components/form-comps/AdministrativeSelect';
// import RoleSearch from '@/components/utils/RoleSearch';
// import UserSearch from '@/components/utils/UserSearch';
// import MetadataSelect from '@/components/utils/MetadataSelect'
// import CustomButton from '@/components/utils/CustomButton'
Vue.use(ElementUI)
// Vue.use(Antd)
// Vue.component('vue-json-editor', vueJsonEditor)
Vue.component('id-input', IdInput)
Vue.component('position-select', PositionSelect)
// Vue.component('PositionSelect', PositionSelect)
Vue.component('AdminSelect', AdminSelect)
// Vue.component('RoleSearch', RoleSearch)
var VJsoneditor = window.VJsoneditor.default;
Vue.component('vue-json-editor', VJsoneditor);
// Vue.component('UserSearch', UserSearch);
// Vue.component('MetadataSelect', MetadataSelect);
// Vue.component('CustomButton', CustomButton)
Vue.use(formCreate)
Vue.component('r-grid-layout', RGridLayout)
Vue.component('r-grid-layout-pre', RGridLayoutPre)

Vue.use(less)
Vue.config.productionTip = false
Vue.prototype.$store = store
window.FORM_CONFIG = {
  'test':[
    {
      label:'1',
      value: '1'
    },
    {
      label:'2',
      value: '2'
    },
    {
      label:'3',
      value: '3'
    }
  ]
}
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
